package cn.itcast.cd.service.impl;

import cn.itcast.cd.dao.IBaseDao;
import cn.itcast.cd.dao.IPurchaseBillItemDao;
import cn.itcast.cd.domain.PurchaseBillItem;
import cn.itcast.cd.query.IQuery;
import cn.itcast.cd.resultPage.ResultPage;
import cn.itcast.cd.service.IPurchaseBillItemService;
import cn.itcast.cd.utils.MD5;

public class PurchaseBillItemServiceImpl implements IPurchaseBillItemService {

	private IPurchaseBillItemDao purchaseBillItemDao;
	
	public void setPurchaseBillItemDao(IPurchaseBillItemDao PurchaseBillItemDao) {
		this.purchaseBillItemDao = PurchaseBillItemDao;
	}

	@Override
	public void save(PurchaseBillItem PurchaseBillItem) {
		purchaseBillItemDao.save(PurchaseBillItem);
	}

	@Override
	public PurchaseBillItem get(Long id) {
		return (PurchaseBillItem) purchaseBillItemDao.get(id);
	}

	@Override
	public ResultPage query(String hql, Object[] params, int start, int limit) {
		return purchaseBillItemDao.query(hql, params, start, limit);
	}

	@Override
	public void delete(Long id) {
		purchaseBillItemDao.delete(id);
	}

	@Override
	public void update(PurchaseBillItem PurchaseBillItem) {
		purchaseBillItemDao.update(PurchaseBillItem);
	}

	@Override
	public ResultPage queryEntity(IQuery query) {
		
		return purchaseBillItemDao.queryEntity(query);
	}

}
